// 主题独有配置
import {getThemeConfig} from '@sugarat/theme/node'

import {srcDir} from "./constant";

// 开启RSS支持（RSS配置）
// import type { Theme } from '@sugarat/theme'

// const baseUrl = 'https://sugarat.top'
// const RSS: Theme.RSSOptions = {
//   title: '粥里有勺糖',
//   baseUrl,
//   copyright: 'Copyright (c) 2018-present, 粥里有勺糖',
//   description: '你的指尖,拥有改变世界的力量（大前端相关技术分享）',
//   language: 'zh-cn',
//   image: 'https://img.cdn.sugarat.top/mdImg/MTY3NDk5NTE2NzAzMA==674995167030',
//   favicon: 'https://sugarat.top/favicon.ico',
// }

// 所有配置项，详见文档: https://theme.sugarat.top/
const blogTheme = getThemeConfig({
    author: 'FatGod',
    authorList: [
        {
            nickname: 'FatGod',
            url: 'https://www.fatgod.cn',
            des: '小胖神热爱生活'
        }
    ],
    srcDir,
    article: {
        hiddenCover: true
    },
    // 开启RSS支持
    // RSS,

    // 关闭主题内置搜索，自定义vite插件配置
    search: false,
    // 推荐文章展示卡片
    recommend: {
        title: '🗂️ 目录结构',
        nextText: '下一页',
        empty: '暂无相关文章',
        sort: 'date'
    },
    // 页脚
    footer: {
        version: false,
        // message: '下面 的内容和图标都是可以修改的噢（当然本条内容也是可以隐藏的）',
        copyright: 'FatGod | 嘉兴小胖神',
        icpRecord: {
            name: '浙ICP备2024065118号',
            link: 'https://beian.miit.gov.cn/'
        },
        securityRecord: {
            name: '浙ICP备2024065118号-1',
            link: 'https://www.beian.gov.cn/portal/index.do'
        },
    },
    // 主题色修改
    themeColor: 'vp-default',
    // 公告
    popover: {
        title: '提醒',
        body: [
            {type: 'text', content: '👇👇---👇👇微信联系我👇👇---👇👇'},
            {
                type: 'image',
                src: 'https://fatgod-note.oss-cn-hangzhou.aliyuncs.com/work/img/%E5%BE%AE%E4%BF%A1%E4%BA%8C%E7%BB%B4%E7%A0%81.png'
            },
            {
                type: 'text',
                content: '欢迎大家加微信私信交流'
            },
            {
                type: 'button',
                content: '关于我',
                link: '/'
            },
            {
                type: 'button',
                content: '首页',
                props: {
                    type: 'success'
                },
                link: '/',
            }
        ],
        duration: 0
    },
    // 友链
    friend: [
        {
            nickname: '粥里有勺糖',
            des: '你的指尖用于改变世界的力量',
            avatar:
                'https://img.cdn.sugarat.top/mdImg/MTY3NDk5NTE2NzAzMA==674995167030',
            url: 'https://sugarat.top',
        },
        {
            nickname: 'Vitepress',
            des: 'Vite & Vue Powered Static Site Generator',
            avatar:
                'https://vitepress.dev/vitepress-logo-large.webp',
            url: 'https://vitepress.dev/',
        },
    ],
})

export {blogTheme}
